#ifndef _types_h
#define _types_h

#define HTTP_PARSER_ARRAYSIZE 512
#define CMD_GET 1
#define CMD_GET_CONDITIONAL 2
#define CMD_UNSUPPORTED 0

typedef struct {
	char http_port[5];
	char admin_port[5];
	char http_folder[128];
	char log_file[128];
	char admin_password[32];
} serverconf, *serverconfp;

typedef struct {
	char http_command;
	char filename[256];
	char date[32];
} httprequest, *httprequestp;

typedef struct {
	char code[4];
	char mime[32];
	char msg[64];
} httpresponse, *httpresponsep;

#endif